
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Crane,,Name>
-- Create date: <2011/11/19,,>
-- Description:	<Update a exists CardInfo,,>
-- =============================================
CREATE PROCEDURE dbo.Update_CardInfo
(
	@AccountId		int, 
	@CardNumber		nvarchar(50),
	@HoldName		nvarchar(300),
	@CardType		nvarchar(40),
	@ExpireMonth	nchar(2),
	@ExpireYear		nchar(2),
	@ValidCode		nchar(3)
)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	UPDATE [dbo].[CardInfo]
	SET 
          [CardNumber] = @CardNumber,
          [HoldName] = @HoldName,
          [CardType] = @CardType,
          [ExpireMonth] = @ExpireMonth,
          [ExpireYear] = @ExpireYear,
          [ValidCode] = @ValidCode
     WHERE AccountId = @AccountId
END
GO
